package _995MoBan;

/**
 * @Game: 抽象类 模板方法设置为final
 * @author: ZBoHang
 * @time: 2021/9/17 17:20
 */
public abstract class Game {
    protected abstract void initialize();
    protected abstract void startPlay();
    protected abstract void endPlay();

    public final void play() {
        initialize();
        startPlay();
        endPlay();
    }
}
